package com.clg.common.jqueryDataTables;

import java.util.List;

/**
 * Created by Administrator on 2016/10/14.
 */
public class DataTablesParam {
    /// <summary>
    /// Request sequence number sent by DataTable, same value must be returned in response
    /// </summary>
    public String sEcho;

    /// <summary>
    /// Text used for filtering
    /// </summary>
    public String sSearch;

    /// <summary>
    /// Number of records that should be shown in table
    /// </summary>
    public int iDisplayLength;

    /// <summary>
    /// First record that should be shown(used for paging) first is 0
    /// </summary>
    public int iDisplayStart;

    /// <summary>
    /// Number of columns in table
    /// </summary>
    public int iColumns;

    /// <summary>
    /// Number of columns that are used in sorting
    /// </summary>
    public int iSortingCols;


    /// <summary>
    /// Comma separated list of column names
    /// </summary>
    public String sColumns;

    public List<DataTablesParamSearch> paramSearch;

    public int getCurtPageNum(){
        return  iDisplayStart/iDisplayLength+1;
    }

}
